<template>
    <div>
    <div class="titleBox" v-for="item in newsTitle" v-bind:key="item.id">
        <div >{{item.title}}</div>
        <div class="right">></div>
    </div>
    </div>
</template>

<script>
export default {
    name:'NewsTitle',
    data(){
        return{
            newsTitle:[
                { id:0, title:'大新闻大新闻大新闻大新闻大新闻' },
                { id:1, title:'大新闻大新闻大新闻大新闻大新闻' },
                { id:2, title:'大新闻大新闻大新闻大新闻大新闻' },
                { id:3, title:'大新闻大新闻大新闻大新闻大新闻' },
                { id:4, title:'大新闻大新闻大新闻大新闻大新闻' },
                { id:5, title:'大新闻大新闻大新闻大新闻大新闻' },
            ]
        }
    }
}
</script>

<style lang="less" scoped>
    .titleBox{
        display: flex;
        flex-direction: row; 
        justify-content: space-between;
        font-size: 20px;
        margin-bottom: 20px;
        .right{
            color: #7f7f7f;
        }
    }
</style>